const { Schema, SchemaTypes } = require('../schema');
class NewNeed extends Schema {
    PropertyModelDataTemplate () {
        return {
            areaId: { type: SchemaTypes.ObjectId, required: true },
            userId: { type: SchemaTypes.ObjectId, required: true },
            createTime: { type: SchemaTypes.Number, required: true, default: require('../../module/tool/time').getCurrentTimestamp() },

            productName: { type: SchemaTypes.String, required: true },
            quantity: { type: SchemaTypes.String, required: true },
            images: { type: SchemaTypes.Array, required: false }
        };
    }
}

module.exports = NewNeed;
